package  com.pcbly.web.business.crm;
/**
* @author carl.song
* Copyright (c) 2010 Lightsoft, International.
* All rights reserved.
*
*/

import com.pcbly.web.bean.crm.JhdBean;
import com.pcbly.web.business.BaseService;
import com.pcbly.web.components.hibernate.support.Page;

public interface JhdService extends BaseService<JhdBean> {

	JhdBean getJhdBeanById(String id) throws Exception;
	
	void removeJhdBeanById(String id) throws Exception;
	
	void removeJhdBeanByIds(String ids) throws Exception;
	
	JhdBean saveJhdBean(JhdBean crm) throws Exception;
	
	JhdBean updateJhdBean(JhdBean crm) throws Exception;
	
	Page<JhdBean>  findJhdBeanByCond(JhdBean bean,
			Page<JhdBean> page, String orderByName, boolean asc)
			throws Exception;
	void saveJhdBeanExt(String sql) throws Exception;

	String findJhdBeanExtCreate(String tableName) throws Exception;

	String findJhdBeanExtEdit(String tableName, String id)
			throws Exception;

	String findJhdBeanExtView(String tableName, String id)
			throws Exception;

	boolean getHasJhdBeanExtData(String tableName, String id)
			throws Exception;
}